#include "tcpServer.hpp"
#include <memory>
#include "commandExe.hpp"

using namespace LogModule;

int main()
{
    Command cmd;
    std::unique_ptr<tcpServer> tsvr = std::make_unique<tcpServer>([&cmd](std::string cmdStr) ->std::string{
        return cmd.execute(cmdStr);
    });

    tsvr->initServer();
    tsvr->start();
    return 0;
}